<template>
  <ElDialog width="60%" append-to-body destroy-on-close>
    <template #footer>
      <el-button type="primary" @click="emit('confirm')">确 定</el-button>
      <el-button @click="emit('cancel')">取 消</el-button>
    </template>
    <slot></slot>
  </ElDialog>
</template>

<script setup lang="ts">
const emit = defineEmits(["confirm", "cancel"]);
</script>
